import request from "./../utils/axios"  //组件内部封装的axios
// import request from "@/api/axios.js"       //调用项目封装的axios
import { requestPath } from '@/views/login/utils/global'

//获取验证图片  以及token
export function reqGet() {
	return  request({
        url: `${requestPath.component}/captcha/block-puzzle`,
        method: 'get',
    })
}

//滑动或者点选验证
export function reqCheck(params) {
	return  request({
        url: `${requestPath.component}/captcha/validate`,
        method: 'get',
        params
    })
}

